package com.opo5.logisticsmanagement.Vo;

import com.opo5.logisticsmanagement.domain.Address;
import com.opo5.logisticsmanagement.domain.Department;
import com.opo5.logisticsmanagement.domain.Role;
import com.opo5.logisticsmanagement.domain.User;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;


/**
 * @Title: UserVo
 * @Author: lixin
 * @Date: 2022/07/10/10:51
 * @Description: userVo
 */
@Data
public class UserVo {
    @NotNull(message = "用户不能为空")
    @Valid
    private User user;
    @NotNull(message = "地址不能为空")
    @Valid
    private Address address;
    private Role role;
    private Department department;
}
